import axios from "@/services/index";

interface EnergyDataType {
  legend: string[];
  xAxis: string[];
  series: { name: string; data: number[] }[];
}

export async function getEnergyData() {
  const result = (await axios.get("/energyData")) as EnergyDataType;
  return result;
}
